<?php $this->load->view('admin/common/pageHead');?>
<?php $this->load->view('admin/common/pageHeader');?>
<div class="fLeft">
	<?php $this->load->view('admin/common/left_nav'); ?>
</div>
<div class="fRight" style="margin: 20px 20px 0px 20px";>
	<form action="/insertCms" name='form1' method="post"
		onSubmit="return valid();">
		<table width="580" border="0" align="right" cellpadding="0"
			cellspacing="0" class="allbdr">
			<tr bgcolor="#3b63dd">
				<td colspan="65" align="center" class="fotter-color">Add Content</td>
			</tr>
			<tr>
				<td align="" class="tdclass" height="5"></td>
			</tr>
			<tr>
				<td align="" class="tdclass">Title<span
					style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #EC0000">*</span>
				</td>
			</tr>
			<tr>
				<td height="26" align="" class="tdclass"><input name="title"
					type="text" size="40" value="" maxlength="90"></td>
			</tr>

			<tr>
				<td align="" class="tdclass" height="5"></td>
			</tr>
			<tr>
				<td align="" class="tdclass">Content<span
					style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #EC0000">*</span>
				</td>
			</tr>
			<tr>
				<td align="" class="tdclass" height="5"><textarea cols="70" rows="5"
						name="area2" id="area2"> </textarea></td>
			</tr>
			<tr>
				<td align="" class="tdclass" height="5"></td>
			</tr>
			<tr>
				<td align="" class="tdclass">Page Title<span
					style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #EC0000">*</span>
				</td>
			</tr>
			<tr>
				<td align="" class="tdclass"><input type="text" size="40"
					name="pageTitle" value=""></td>
			</tr>

			<tr>
				<td align="" class="tdclass" height="5"></td>
			</tr>

			<tr>
				<td align="" class="tdclass">Meta Data</td>
			</tr>
			<tr>
				<td align="" class="tdclass"><textarea name="metaData"></textarea></td>
			</tr>
			<tr>
				<td align="" class="tdclass" height="5"></td>
			</tr>
			<tr>
				<td align="" class="tdclass">Meta Description</td>
			</tr>
			<tr>
				<td align="" class="tdclass"><textarea name="pageDescription"></textarea>
				</td>
			</tr>

			<tr>
				<td align="" class="tdclass" height="5"></td>
			</tr>
			<tr>
				<td align="" class="tdclass">Meta Keyword</td>
			</tr>
			<tr>
				<td align="" class="tdclass"><textarea name="pageKeywords"></textarea>
				</td>
			</tr>
			<tr>
				<td height="58" colspan="9" align="center"><input name="newAdded"
					type="submit" class="form_input" id="newAdded" value="Add" />
					&nbsp;<INPUT TYPE="reset" value="Cancel" class=""
					onClick="javascript:history.back();"> <input type="hidden" value=""
					name="id" />
				</td>
			</tr>
		</table>
	</form>
</div>
<div class="clr">
	<div>
		<script type="text/javascript">
function valid()
{
	 if(document.form1.title.value=='')
	 {
		 
	    alert("please enter your title ");
	    document.form1.title.focus();
	     return false;
	 }
	 var re=/^[A-z. ]+$/; 
	 if(!document.form1.title.value.match(re)) 
	 {
		 
	    alert("please enter correct title"); 
	    document.form1.title.focus();
	    document.form1.title.value='';
	    return false;
	 }
	
	 if(document.form1.pageTitle.value=='')
	 {
		 
	   alert("please enter your pageTitle ");
	   document.form1.pageTitle.focus();
	   return false;
	 }
	 var se=/^[a-zA-Z. ]+$/; 
	 if(!document.form1.pageTitle.value.match(se))
	  {
		  
	   alert("please enter correct pageTitle"); 
	   document.form1.pageTitle.focus();
	   document.form1.pageTitle.value='';
	   return false;
	 }
	 if(document.form1.status.value=='')
	 {
		 
	   alert("please enter your status ");
	   document.form1.status.focus();
	   return false;
	 }
	 var se=/^[a-zA-Z. ]+$/; 
	 if(!document.form1.status.value.match(se))
	  {
		  
	   alert("please enter correct status"); 
	   document.form1.status.focus();
	   document.form1.status.value='';
	   return false;
	 }
	 if(document.form1.pageDescription.value=='')
	 {
		 
	   alert("please enter your pageDescription ");
	   document.form1.pageDescription.focus();
	   return false;
	 }
	 var se=/^[a-zA-Z. ]+$/; 
	 if(!document.form1.pageDescription.value.match(se))
	  {
		  
	   alert("please enter correct pageDescription"); 
	   document.form1.pageDescription.focus();
	   document.form1.pageDescription.value='';
	   return false;
	 }
	 if(document.form1.pageKeywords.value=='')
	 {
		 
	   alert("please enter your pageKeywords ");
	   document.form1.pageKeywords.focus();
	   return false;
	 }
	 var se=/^[a-zA-Z. ]+$/; 
	 if(!document.form1.pageKeywords.value.match(se))
	  {
		  
	   alert("please enter correct pageKeywords"); 
	   document.form1.pageKeywords.focus();
	   document.form1.pageKeywords.value='';
	   return false;
	 }	 	  
}

</script>
		<?php $this->load->view('admin/common/pageFooter');?>